<!doctype html>
<html>
  <head>
    <title>Upload</title>
    <script src="/static/jquery-1.8.3.min.js"></script>
    <link rel="stylesheet" href="/static/jquery.mobile-1.4.5.min.css">
    <script src="/static/jquery.mobile-1.4.5.min.js"></script>
    <meta charset="UTF-8">
  </head>
  <body>
    <div data-role="page">
      <div data-role="header">
        {% include 'header.html' %}
      </div>
      <div data-role="content">
        {% if error %}
        <p>{{ error }}</p>
        {% endif %}
        <form method="post" action="/upload/" enctype="multipart/form-data" data-ajax="false">
          <div data-role="fieldcontain">
            <label for="upload_file">文件：</label>
            <input type="file" name="upload_file" id="upload_file">
            <label for="tag">标签：</label>
            <input type="text" name="category" id="category">
            <label for="password">密码：</label>
            <input type="password" name="password" id="password">
          </div>
          <input type="submit" data-inline="true" value="提交">
        </form>
      </div>
      <div data-role="footer">
        <h1>An <a href="//shiyiquan.net/club/hcc-computer-community/">HCC</a> project</h1>
      </div>
    </div>
  </body>
</html>

